<div class="pageContent">
	<form method="post" action="<?php echo site_url($action) ?>" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
		<div class="pageFormContent" layoutH="56">
			<p>
				<label>用户名：</label>
				<input name="username" type="text" size="30" value="<?php echo set_value('username', isset($admin[0]['username'])? $admin[0]['username']:''); ?>" class="required" alt="请填入用户名"/>
			</p>
			<p>
				<label>分组：</label>
				<select name="rid" id="">
					<?php foreach ($roles as  $role): ?>
						<option value="<?php echo $role['rid'] ?>" <?php if ($admin[0]['rid'] == $role['rid']): ?>
							selected
						<?php endif ?>><?php echo $role['rname'] ?></option>
					<?php endforeach ?>
					
				</select>
			</p>

			<p>
				<label>密码：</label>
				<input name="password" type="password" size="30" value="" />
			</p>
			<p>
				<label>确认密码：</label>
				<input name="repasswd" type="password" size="30" value="" />
			</p>

		</div>
		<input type="hidden" name="isajax" value="true">
		<input type="hidden" name="uid" value="<?php echo $uid ?>">
		<div class="formBar">
			<ul>
				<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>


